#ifndef _BULLET_H
#define _BULLET_H
#include "Sprite.h"

class CBullet
{
public:
	float _x, _y;
	float _x0, _y0;
	/*	int _timeaLive;
		int _countTime;*/
	CTimer _timeaLive;
	float _vx, _vy;
	bool _alive;
	int _levelBullet;
	double _alpha;

public:
	CBullet();
	CBullet(float ix, float iy, int itimeaLive, float ivx, float ivy, int ilevelBullet, double ialpha);
	CBullet(CBullet *iBullet);

	bool operator == (CBullet a)const;
	void SetVelocity(float ivx, float ivy);
	void SetLocation(float ix, float iy);
	bool CheckALive();
	void Update();
	void Draw(CSprite *iSprite);

	~CBullet();
};

#endif